<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow: flow::net_flow::Node::Socket_id Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow<span id="projectnumber">&#160;2.0.0</span>
   </div>
   <div id="projectbrief">Flow project: Full implementation reference.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceflow.html">flow</a></li><li class="navelem"><a class="el" href="namespaceflow_1_1net__flow.html">net_flow</a></li><li class="navelem"><a class="el" href="classflow_1_1net__flow_1_1Node.html">Node</a></li><li class="navelem"><a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html">Socket_id</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#related">Related Functions</a> &#124;
<a href="structflow_1_1net__flow_1_1Node_1_1Socket__id-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">flow::net_flow::Node::Socket_id Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p>The data nugget uniquely identifying a peer-to-peer connection from a remote endpoint to a port in this <a class="el" href="classflow_1_1net__flow_1_1Node.html" title="An object of this class is a single Flow-protocol networking node, in the sense that: (1) it has a di...">Node</a>.  
 <a href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for flow::net_flow::Node::Socket_id:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="structflow_1_1net__flow_1_1Node_1_1Socket__id__coll__graph.svg" width="328" height="227"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4f4e052de75d02fb4610df872be06186"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html#a4f4e052de75d02fb4610df872be06186">hash</a> () const</td></tr>
<tr class="memdesc:a4f4e052de75d02fb4610df872be06186"><td class="mdescLeft">&#160;</td><td class="mdescRight">Hash value of this <a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html" title="The data nugget uniquely identifying a peer-to-peer connection from a remote endpoint to a port in th...">Socket_id</a> for <code>unordered&lt;&gt;</code>.  <a href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html#a4f4e052de75d02fb4610df872be06186">More...</a><br /></td></tr>
<tr class="separator:a4f4e052de75d02fb4610df872be06186"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a23527fa6deadda111d7c4c194a0ce177"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structflow_1_1net__flow_1_1Remote__endpoint.html">Remote_endpoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html#a23527fa6deadda111d7c4c194a0ce177">m_remote_endpoint</a> = <a class="el" href="structflow_1_1net__flow_1_1Remote__endpoint.html">Remote_endpoint</a>()</td></tr>
<tr class="memdesc:a23527fa6deadda111d7c4c194a0ce177"><td class="mdescLeft">&#160;</td><td class="mdescRight">The other side of the connection.  <a href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html#a23527fa6deadda111d7c4c194a0ce177">More...</a><br /></td></tr>
<tr class="separator:a23527fa6deadda111d7c4c194a0ce177"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefe916d29cee30dbc344532603aa9336"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="namespaceflow_1_1net__flow.html#a079d8cd87a68d1c5f04c6bce71f0061d">flow_port_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html#aefe916d29cee30dbc344532603aa9336">m_local_port</a> = <a class="el" href="namespaceflow_1_1net__flow.html#a9dd0c9d8de00fab78d8b0a3f50dad2a9">S_PORT_ANY</a></td></tr>
<tr class="memdesc:aefe916d29cee30dbc344532603aa9336"><td class="mdescLeft">&#160;</td><td class="mdescRight">This side of the connection (within this <a class="el" href="classflow_1_1net__flow_1_1Node.html" title="An object of this class is a single Flow-protocol networking node, in the sense that: (1) it has a di...">Node</a>).  <a href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html#aefe916d29cee30dbc344532603aa9336">More...</a><br /></td></tr>
<tr class="separator:aefe916d29cee30dbc344532603aa9336"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="related" name="related"></a>
Related Functions</h2></td></tr>
<tr><td class="ititle" colspan="2"><p >(Note that these are not member functions.) </p>
</td></tr>
<tr class="memitem:a9a84ca63c060a64658d2bd4acc044dbc"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html#a9a84ca63c060a64658d2bd4acc044dbc">hash_value</a> (const <a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html">Node::Socket_id</a> &amp;<a class="el" href="classflow_1_1net__flow_1_1Node.html#a99836ffb51eaefa4d2cc21770461cd97">socket_id</a>)</td></tr>
<tr class="separator:a9a84ca63c060a64658d2bd4acc044dbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e6b5a60123429cfdfde6149a88ac508"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html#a9e6b5a60123429cfdfde6149a88ac508">operator==</a> (const <a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html">Node::Socket_id</a> &amp;lhs, const <a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html">Node::Socket_id</a> &amp;rhs)</td></tr>
<tr class="separator:a9e6b5a60123429cfdfde6149a88ac508"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >The data nugget uniquely identifying a peer-to-peer connection from a remote endpoint to a port in this <a class="el" href="classflow_1_1net__flow_1_1Node.html" title="An object of this class is a single Flow-protocol networking node, in the sense that: (1) it has a di...">Node</a>. </p>
<p >Its (unmodifiable after initialization) fields are to be constructed via direct initialization (assuming the defaults are unacceptable). </p>

<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l03861">3861</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a4f4e052de75d02fb4610df872be06186" name="a4f4e052de75d02fb4610df872be06186"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f4e052de75d02fb4610df872be06186">&#9670;&nbsp;</a></span>hash()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t flow::net_flow::Node::Socket_id::hash </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Hash value of this <a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html" title="The data nugget uniquely identifying a peer-to-peer connection from a remote endpoint to a port in th...">Socket_id</a> for <code>unordered&lt;&gt;</code>. </p>
<dl class="section return"><dt>Returns</dt><dd>Ditto. </dd></dl>

<p class="definition">Definition at line <a class="el" href="node_8cpp_source.html#l01146">1146</a> of file <a class="el" href="node_8cpp_source.html">node.cpp</a>.</p>

<p class="reference">References <a class="el" href="node_8hpp_source.html#l03868">m_local_port</a>, and <a class="el" href="node_8hpp_source.html#l03866">m_remote_endpoint</a>.</p>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="a9a84ca63c060a64658d2bd4acc044dbc" name="a9a84ca63c060a64658d2bd4acc044dbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a84ca63c060a64658d2bd4acc044dbc">&#9670;&nbsp;</a></span>hash_value()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t hash_value </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html">Node::Socket_id</a> &amp;&#160;</td>
          <td class="paramname"><em>socket_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Free function that returns socket_id.hash(); has to be a free function named <code><a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html#a9a84ca63c060a64658d2bd4acc044dbc">hash_value()</a></code> for boost.hash to pick it up.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">socket_id</td><td>Socket ID to hash. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>socket_id.hash(). </dd></dl>

<p class="definition">Definition at line <a class="el" href="node_8cpp_source.html#l01161">1161</a> of file <a class="el" href="node_8cpp_source.html">node.cpp</a>.</p>

</div>
</div>
<a id="a9e6b5a60123429cfdfde6149a88ac508" name="a9e6b5a60123429cfdfde6149a88ac508"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e6b5a60123429cfdfde6149a88ac508">&#9670;&nbsp;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbool.html">bool</a> operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html">Node::Socket_id</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structflow_1_1net__flow_1_1Node_1_1Socket__id.html">Node::Socket_id</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Whether <code>lhs</code> is equal to <code>rhs</code>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>Object to compare. </td></tr>
    <tr><td class="paramname">rhs</td><td>Object to compare. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>See above. </dd></dl>

<p class="definition">Definition at line <a class="el" href="node_8cpp_source.html#l01156">1156</a> of file <a class="el" href="node_8cpp_source.html">node.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aefe916d29cee30dbc344532603aa9336" name="aefe916d29cee30dbc344532603aa9336"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefe916d29cee30dbc344532603aa9336">&#9670;&nbsp;</a></span>m_local_port</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="namespaceflow_1_1net__flow.html#a079d8cd87a68d1c5f04c6bce71f0061d">flow_port_t</a> flow::net_flow::Node::Socket_id::m_local_port = <a class="el" href="namespaceflow_1_1net__flow.html#a9dd0c9d8de00fab78d8b0a3f50dad2a9">S_PORT_ANY</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This side of the connection (within this <a class="el" href="classflow_1_1net__flow_1_1Node.html" title="An object of this class is a single Flow-protocol networking node, in the sense that: (1) it has a di...">Node</a>). </p>

<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l03868">3868</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="node_8cpp_source.html#l01146">hash()</a>.</p>

</div>
</div>
<a id="a23527fa6deadda111d7c4c194a0ce177" name="a23527fa6deadda111d7c4c194a0ce177"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23527fa6deadda111d7c4c194a0ce177">&#9670;&nbsp;</a></span>m_remote_endpoint</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structflow_1_1net__flow_1_1Remote__endpoint.html">Remote_endpoint</a> flow::net_flow::Node::Socket_id::m_remote_endpoint = <a class="el" href="structflow_1_1net__flow_1_1Remote__endpoint.html">Remote_endpoint</a>()</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The other side of the connection. </p>

<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l03866">3866</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="node_8cpp_source.html#l01146">hash()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li>net_flow/<a class="el" href="node_8hpp_source.html">node.hpp</a></li>
<li>net_flow/<a class="el" href="node_8cpp_source.html">node.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 28 2025 22:55:36 for Flow by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
